#pragma once
#include"const.h"
#include"MysqlDao.h"
class MySqlMgr:public Singleton<MySqlMgr>
{

	friend class Singleton<MySqlMgr>;
public:
	~MySqlMgr();
	int RegUser(const string& name,const string& pwd, const string& email);
	bool CheckEmail(const std::string& name, const std::string& email);
	bool UpdatePwd(const std::string& name, const std::string& pwd);
	bool CheckPwd(const std::string& name, const std::string& pwd, UserInfo& userinfo);
private:
	MySqlMgr();
	MysqlDao dao_;

};

